
#ifndef UI_DLGHATCH_H
#define UI_DLGHATCH_H

#include "ui_ui_dlghatch.h"
#include "..\gui_export.h"

class GUI_EXPORT UI_DlgHatch : public QDialog, public Ui::UI_DlgHatch
{
    Q_OBJECT

public:
    UI_DlgHatch(QWidget* parent = 0, const char* name = 0, bool modal = false, Qt::WindowFlags fl = 0);
    ~UI_DlgHatch();

public slots:
    virtual void polish();
    virtual void showEvent( QShowEvent * e );
    virtual void setHatch( PF_Hatch & h, bool isNew );
    virtual void updateHatch();
    virtual void setPattern( const QString & p );
    virtual void resizeEvent( QResizeEvent * );
    virtual void updatePreview();
    virtual void updatePreview( PF_Pattern * );

protected slots:
    virtual void languageChange();

private:
    PF_Container* preview;
    bool isNew;
    PF_Pattern* pattern;
    PF_Hatch* hatch;

    void init();
    void destroy();

};

#endif // QG_DLGHATCH_H
